﻿using CNav.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CNav.Domain
{
    public class Complaint
    {
        public int ID { get; set; }
        public int ConsumerID { get; set; }

        public int BusinessID { get; set; }

        public int ProductID { get; set; }

        public DateTime CreatedOnUtc { get; set; }
        public DateTime LastActivityOnUtc { get; set; }
        public int BusinessContactID { get; set; }

        public string SubjectTitle { get; set; }

        public string Description { get; set; }

        public string AdminComment { get; set; }

        public Priority Priority { get; set; }

        public int WorkPoolID { get; set; }

        public int OwnerUserID { get; set; }

        public int TeamID { get; set; }

        public int ComplainRef { get; set; }
        public bool ClosedFlag { get; set; }
        public DateTime ClosedDate
        { get; set; }

        public NonProgressFlag NonProgressFlag { get; set; }
        public Stage Stage { get; set; }

        public int JuridictionReasonID { get; set; }

        public int ResolutionID { get; set; }
        public int SettlementID { get; set; }
    }

    public class ComplaintEx : Complaint
    {
        public Consumer Consumer { get; set; }
        public Business Business { get; set; }
        public Product Product { get; set; }
        public BusinessContact BusinessContact { get; set; }
        public WorkPool WorkPool { get; set; }
        public UserProfile Owner { get; set; }
        public Team Team { get; set; }
        public JuridictionReason JuridictionReason { get; set; }
        public Resolution Resolution { get; set; }
        public Settlement Settlement { get; set; }
    }
}